﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using dotNetInteropPlugin.PluginDev;
using System.Windows.Forms;

namespace TestManagedPlugin
{
    [AIMPManagedPlugin("dotNetInteropTest", "Ilya Kopylov", 96)]
    public class Class1: MAIMPManagedPlugin
    {
        public override bool HasSettingDialog
        {
            get { return true; }
        }

        public override void Initialize()
        {
            //ggggg = new int[1024 * 1024 * 16];
            //for (int i = 0; i < ggggg.Length; i++)
            //    ggggg[i] = i;
            frm = new Form1();
            frm.player = Player;
            frm.Show();
            //MessageBox.Show("Initialize");
        }

        //int[] ggggg = null;

        Form1 frm = null;

        public override void ShowSettingDialog(System.Windows.Forms.IWin32Window ParentWnd)
        {
            MessageBox.Show("ShowSettingDialog");
        }

        public override void Dispose()
        {
            frm.Close();
            frm = null;
           // MessageBox.Show("Dispose"); 
        }
    }
}
